/*************************************************************************
    > File Name: 01_debug.c
    > Author: koffuxu
    > Mail: koffuxu@gmail.com 
    > Created Time: 2013年07月17日 星期三 23时26分11秒
 ************************************************************************/

#include<stdio.h>
#include<stdlib.h>
#define NUM 100
void exchange1(int* x, int* y)
{
	int temp;
	temp = *x;
	*x = *y;
	*y = temp;

}
int main()
{
    int i;
    int a = 1, b = 3;
    int UNKNOWN_ERROR       = (-2147483647-1); // INT32_MIN value
    //for test point
    int *p = (int *)malloc(NUM);
    for(i = 0; i < NUM; i++){
        *(p+i) = i;
    }
    exchange1(&a,&b);
    printf("after exchange1 a = %d,b = %d\n",a,b);
    printf("test UNKNOWN_ERR=%d\n",UNKNOWN_ERROR);

    printf("the point addr is %p\n", p);
    printf("the point value is %d\n", *(p+3));
    free(p);
    return 0;
}
